/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements. See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership. The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the  "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*
 * $Id$
 */
package wx.xml.xalan.xalan.templates;

/**
 * Implement Script extension element
 *
 * @xsl.usage internal
 */
public class ElemExtensionScript extends ElemTemplateElement {
    static final long serialVersionUID = -6995978265966057744L;
    /**
     * Language used in extension.
     *
     * @serial
     */
    private String m_lang = null;
    /**
     * Extension handler.
     *
     * @serial
     */
    private String m_src = null;

    /**
     * Constructor ElemExtensionScript
     */
    public ElemExtensionScript() {

        // System.out.println("ElemExtensionScript ctor");
    }

    /**
     * Get language used by extension
     *
     * @return Language used by extension
     */
    public String getLang() {
        return m_lang;
    }

    /**
     * Set language used by extension
     *
     * @param v Language used by extension
     */
    public void setLang(String v) {
        m_lang = v;
    }

    /**
     * Get Extension handler name for this extension
     *
     * @return Extension handler name
     */
    public String getSrc() {
        return m_src;
    }

    /**
     * Set Extension handler name for this extension
     *
     * @param v Extension handler name to set
     */
    public void setSrc(String v) {
        m_src = v;
    }

    /**
     * Get an int constant identifying the type of element.
     *
     * @return The token ID for this element
     * @see wx.xml.xalan.xalan.templates.Constants
     */
    public int getXSLToken() {
        return Constants.ELEMNAME_EXTENSIONSCRIPT;
    }
}
